package common

import (
	"github.com/julienschmidt/httprouter"
	"net/http"
)

type DefinedRouter struct {
	*httprouter.Router
}

func (myr *DefinedRouter) ServeHTTP(w http.ResponseWriter, r *http.Request) {
	w.Header().Set("Content-Type", "application/json; charset=utf-8")
	myr.Router.ServeHTTP(w, r)
}
